<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/tablibs.jsp"%>
<div class="col-md-3 left_col">
	<div class="left_col scroll-view">
		<div class="navbar nav_title" style="border: 0;">
			<a href="${ctx }/main" class="site_title"><i class="fa fa-paw"></i>
				<span>${title}</span></a>
		</div>
		<div class="clearfix"></div>
		<!-- menu profile quick info -->
		<div class="profile clearfix">
			<div class="profile_pic">
				<img src="${ctx }/public/images/img.jpg" alt="..."
					class="img-circle profile_img">
			</div>
			<div class="profile_info">
				<span>你好,</span>
				<h2>${sessionScope.user.name }</h2>
			</div>
		</div>
		<!-- /menu profile quick info -->
		<br />
		<!-- sidebar menu -->
		<div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
			<div class="menu_section">
				<h3>基本</h3>
				<ul class="nav side-menu">
					<li><a><i class="fa fa-home"></i> 课程管理 <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
							<c:if test="${sessionScope.user.type==0 }">
								<li><a href="${ctx }/teacher/course/index">课程管理</a></li>
							</c:if>
							<c:if test="${sessionScope.user.type==1 }">
								<li><a href="${ctx }/student/maincourse/index">主课程</a></li>
								<li><a href="${ctx }/student/course/index">课程选择</a></li>
								<li><a href="${ctx }/student/course/mycourse">课程表</a></li>
							</c:if>
						</ul>
					</li>
					<li><a><i class="fa fa-home"></i> 课程资料 <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
							<c:if test="${sessionScope.user.type==0 }">
								<li><a href="${ctx }/teacher/material/index">上传资料</a></li>
							</c:if>
							<c:if test="${sessionScope.user.type==1 }">
								<li><a href="${ctx }/student/material/index">下载资料</a></li>
							</c:if>
						</ul>
					</li>
					<li><a><i class="fa fa-home"></i> 消息通知 <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
							<c:if test="${sessionScope.user.type==0 }">
								<li><a href="${ctx }/teacher/news/index">发布消息</a></li>
							</c:if>
							<c:if test="${sessionScope.user.type==1 }">
								<li><a href="${ctx }/student/news/index">消息中心</a></li>
							</c:if>
						</ul>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<!-- top navigation -->
<div class="top_nav">
	<div class="nav_menu">
		<nav>
			<div class="nav toggle">
				<a id="menu_toggle"><i class="fa fa-bars"></i></a>
			</div>
			<ul class="nav navbar-nav navbar-right">
				<li class="">
					<a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                    	${sessionScope.user.name }
                    	<span class=" fa fa-angle-down"></span>
                  	</a>
                  	<ul class="dropdown-menu dropdown-usermenu pull-right">
                  		<li>
	                      <a href="javascript:;">
	                        <span>设置</span>
	                      </a>
	                    </li>
	                    <li><a href="#" onclick="changePwd()">修改密码</a></li>
                    <li><a href="${ctx }/logout?admin=1"><i class="fa fa-sign-out pull-right"></i> 登出</a></li>
                  	</ul>
				</li>
			</ul>
		</nav>
	</div>
</div>